If I remember correctly, code 34 is the detonation sensor and no that wouldnt affect compression results..neither would valve stem seals. Rings, valves, and headgaskets will affect compression.
I just put a resistor in the det sensor connector that goes to the ecu so it "fools" it, and replaced the sensor when I had my motor out.